<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSmsRecordTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sms_records', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('fs_user_id')->comment('短信发送给谁');
            $table->integer('carry_user_id')->comment('短信操作者');
            $table->string('value',68)->comment('短信内容');
            $table->unsignedTinyInteger('status')->default(0)->comment('短信发送状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sms_record');
    }
}
